package zj.p20;

import java.util.Scanner;

public class P09 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for (Scanner cin = new Scanner(System.in); cin.hasNext();) {
			String words = cin.nextLine();
			String[] ss = words.split("\\D+");
			for (String string : ss) {
				System.out.println(string);
			}
		}
	}
}
